Skip to content

Conversation

@Xazax-hun
Copy link
Contributor

In case the type does not define a type alias with the same name fall back to the default type of the associated type in the protocol. Previously, the compiler crashed.

Unfortunately, we are still crashing when we do not find the right conformance. In a follow-up PR I plan to add more graceful handling of the case when the lookup fails.

rdar://154098495

In case the type does not define a type alias with the same name fall
back to the default type of the associated type in the protocol.
Previously, the compiler crashed.

Unfortunately, we are still crashing when we do not find the right
conformance. In a follow-up PR I plan to add more graceful handling of
the case when the lookup fails.

rdar://154098495
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@egorzhdan egorzhdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you! This is a great improvement.

@Xazax-hun Xazax-hun merged commit 330326a into swiftlang:main Aug 4, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ interop Feature: Interoperability with C++

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants